package learn;

public class ThreadState {
    public static Object locker = new Object();
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            System.out.println("线程借宿");
        },"还未开始");
        System.out.println(t.getState());
        t.start();
        System.out.println(t.getState());
        Thread.sleep(10000);
    }
}
